var mongoose = require('mongoose');
var roleSchema = mongoose.Schema({
    // "roleName"
    "roleName" : String,
    "remark" : String,
    "permissionList" : {
        "checkedKeys" : [],
        "halfCheckedKeys" : []
    },
    "updateTime" : {
        type: Date,
        default: Date.now()
    },//创建时间
    "createTime" :  {
        type: Date,
        default: Date.now
    },//更新时间
})

module.exports = mongoose.model("role",roleSchema)